import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 生产监控
 * */
// 订单跟踪
export const reportProductionOrderTracking = (params) => getRequest('/report/production/order/tracking', params);
export const productionSaleOrderTracking = (params) => getRequest('/production/sale-order/tracking', params);
// export const getSaleInventoryCount = (params) => getRequest('/production/sale-order/inventory-count', params);
export const productionSaleOrderOutHistoryList = (params) => getRequest('/production/sale-order/out-history-list', params);
export const productionSaleOrderInHistoryList = (params) => getRequest('/production/sale-order/in-history-list', params);
export const productionSaleOrderInventoryCount = (params) => getRequest('/production/sale-order/inventory-count', params);

export const reportProductionOrderTrackingProductionPlan = (params) => getRequest('/report/production/order/tracking-production-plan', params);
export const reportProductionOrderTrackingProductionPlanCount = (params) => getRequest('/report/production/order/tracking-production-plan-count', params);
export const reportProductionHomeDataGetZlData = (params) => getRequest('/report/production/home/data/get-zl-data', params);
export const productionPrdOrderTrackingList = (params) => getRequest('/production/prd-order/tracking-list', params);
export const productionProductOrderTrackingRecordPage = (params) => getRequest('/production/product-order-tracking-record/page', params);
// 区域布局
export const reportProductionOrderProductTracking = (params) => getRequest('/report/production/order/product-tracking', params);

export const reportProductionOrderMachineRunState = (params) => postRequest('/report/production/order/machine-run-state', params);
export const reportProductionOrderTrackingInfo = (params) => getRequest('/report/production/order/tracking-info', params);
export const reportProductionOrderTrackingInfoProductionPlan = (params) => getRequest('/report/production/order/tracking-info-production-plan', params);

export const productionProductOrderWeighingRecordItemCountByOrderId = (params) => getRequest('/production/product-order-weighing-record-item/count-by-orderId', params);
export const productionProductOrderWeighingRecordItemDayCountByOrderId = (params) => getRequest('/production/product-order-weighing-record-item/day-count-by-orderId', params);

// 细纱每日班组产量
export const reportAfterSpinningDayData = (params) => getRequest('/report/after/spinning/day/data', params);
export const reportProductionOrderMachineGroupYieldRealTimeMonitoring = (params) => getRequest('/report/production/order/machine/group-yield/real-time-monitoring', params);

// 合计
export const productionPrdOrderSum = (params) => getRequest('/production/prd-order/sum', params);

export const reportProductionOrderMachineGroupList = (params) => getRequest('/report/production/order/machine/group/list', params);
export const workforceManagementScheduleEmpScheduleGroupList = (params) => getRequest('/workforcemanagement/schedule-emp/schedule/group/list', params);

export const workforceManagementScheduleEmpMachineDeleteScheduleEmp = (params) => deleteRequest('/workforcemanagement/schedule-emp-machine/delete/schedule/emp', params);
export const workforceManagementScheduleEmpMachineCreateEmpMachine = (params) => postRequest('/workforcemanagement/schedule-emp-machine/create/emp/machine', params);

// 排产
export const productionCsPrdNoticeCreateRelease = (params) => postRequest('/production/cs/prd-notice/create-release', params);
export const productionMbPrdNoticeCreateRelease = (params) => postRequest('/production/mb/prd-notice/create-release', params);
export const productionTbPrdNoticeCreateRelease = (params) => postRequest('/production/tb/prd-notice/create-release', params);
export const productionSmPrdNoticeCreateRelease = (params) => postRequest('/production/sm/prd-notice/create-release', params);

export const reportMachineStateInfo = (params) => getRequest('/report/machine/state-info', params);

// 前纺视图排产-请假人
export const workforceManagementEmpLeaveRecordCreate = (params) => postRequest('/workforcemanagement/emp-leave-record/create', params);
export const workforceManagementEmpLeaveRecordPage = (params) => getRequest('/workforcemanagement/emp-leave-record/page', params);
export const workforceManagementEmpLeaveRecordGet = (params) => getRequest('/workforcemanagement/emp-leave-record/get', params);
export const workforceManagementEmpLeaveRecordUpdate = (params) => putRequest('/workforcemanagement/emp-leave-record/update', params);
export const workforceManagementEmpLeaveRecordDelete = (params) => deleteRequest('/workforcemanagement/emp-leave-record/delete', params);

// 工艺监控
export const productionMachineSpecMonitoringRecordPage = (params) => getRequest('/production/machine-spec-monitoring-record/page', params);
export const productionMachineSpecMonitoringRecordGetSpecMonitoring = (params) => getRequest('/production/machine-spec-monitoring-record/get-spec-monitoring', params);
export const productionMachineSpecMonitoringRecordRead = (params) => postRequest('/production/machine-spec-monitoring-record/read', params);
export const reportMachineProcessList = (params) => getRequest('/report/machine/process-list', params);
